﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WPS.Code.Code;

namespace WPS.Code.Utils
{
    public class ApiUtils
    {
        public const string Token = "_w_token";
        /// <summary>
        /// 响应请求
        /// </summary>
        /// <param name="code"></param>
        /// <param name="data"></param>
        /// <param name="message"></param>
        /// <returns></returns>
        public static Response DoResponse(ResponseCode responseCode, object data, string message)
        {
            int code = (int)responseCode;
            return new Response() { Code = code.ToString(), Data = data, Message = message };
        }
    }
}
